
import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import 'amfe-flexible'
import 'vant/lib/index.css'
import '@/styles/index.scss'
import { Toast } from 'vant';
import PluginState from 'pinia-plugin-persistedstate'
import './permission.ts'
const app = createApp(App)
const piniaApp = createPinia()
// app.use(createPinia())
piniaApp.use(PluginState) //注册持久化插件
app.use(piniaApp) // 注册pinia
app.use(router)
app.use(Toast)
app.mount('#app')
